﻿<dialogs:ClosableDialogWindow x:Class="Mnk.Library.WpfControls.Dialogs.InputSelect"
             xmlns:loc="clr-namespace:Mnk.Library.WpfControls.Localization"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                      xmlns:components="clr-namespace:Mnk.Library.WpfControls.Components"
                                             xmlns:dialogs="clr-namespace:Mnk.Library.WpfControls.Dialogs"
                                             mc:Ignorable="d" 
             WindowStyle="SingleBorderWindow" 
             ResizeMode="NoResize"
             Height="200" Width="350"
             MinHeight="300" MinWidth="350" 
             FocusManager.FocusedElement="{Binding ElementName=edData}" >
    <DockPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" DockPanel.Dock="Bottom">
            <Button Name="btnOk" Content="{loc:Tr OK}" Width="64" Margin="10" Click="BtnOk_OnClick" IsDefault="True" ToolTipService.ShowOnDisabled="True"/>
            <Button Content="{loc:Tr Cancel}" Width="64" Margin="10" IsCancel="True" Click="BtnCancelClick"/>
        </StackPanel>
        <DockPanel>
            <TextBlock Name="Question" Padding="5,0" DockPanel.Dock="Top"/>
            <components:ExtListBox x:Name="Items" SelectionChanged="Selector_OnSelectionChanged" >
                <components:ExtListBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding}" HorizontalAlignment="Stretch" Padding="0" MouseLeftButtonDown="OnMouseLeftButton"/>
                    </DataTemplate>
                </components:ExtListBox.ItemTemplate>
            </components:ExtListBox>
        </DockPanel>
    </DockPanel>
</dialogs:ClosableDialogWindow>
